﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OEMP.Model
{
    public class ValidateRegexs
    {
        /// <summary>
        /// Email地址
        /// </summary>
        public const string EMAIL = "\\b(^['_A-Za-z0-9-]+(\\.['_A-Za-z0-9-]+)*@([A-Za-z0-9-])+(\\.[A-Za-z0-9-]+)*((\\.[A-Za-z0-9]{2,})|(\\.[A-Za-z0-9]{2,}\\.[A-Za-z0-9]{2,}))$)\\b";
        /// <summary>
        /// InternetURL
        /// </summary>
        public const string URL = @"^http://([\w-]+\.)+[\w-]+(\[\w-.\?%&=]*)?$";

        /// <summary>
        /// 电话号码
        /// </summary>
        public const string TEL = @"^(\(\d{3,4}-)|\d{3.4}-)?\d{7,8}$";

        /// <summary>
        /// 手机号码
        /// </summary>
        public const string MOBILE = @"^1[345789]\d{9}$";

        /// <summary>
        /// 身份证号码
        /// </summary>
        public const string CARNO = @"^\d{15}|\d{18}$";

        /// <summary>
        /// 汉字  
        /// </summary>
        public const string CN_STR = @"^[\u4e00-\u9fa5]{0,}$";
    }
}
